package com.springBoot.service;

import com.springBoot.entity.UserEntity;
import com.springBoot.entity.union.UserWithRoleEntity;

import java.util.List;
import java.util.Map;
import java.util.concurrent.Future;

public interface UserService {

    public List<Map<String, String>> retrieveByParams(UserEntity userEntity);
    public Map<String, String> getUserByUserAcc(String userAcc);
    public UserWithRoleEntity login(String userAcc, String userPwd) throws Exception;
    public Map<String, String> getUserByUserId(String userId);
    public UserWithRoleEntity getUserInfoByUserId(String userId);
    public boolean updateUserInfo(UserWithRoleEntity userWithRoleEntity);
    public Future<UserWithRoleEntity> insertNewUserInfo(UserWithRoleEntity userWithRoleEntity);
    public void deleteUser(String userId, String lastModifiedBy);
}
